
import province from '@/utils/area'

export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "viewBtn": true,
  "editBtn": true,
  "delBtn": true,
  menuWidth:150,
  selection:true,
  "column": [
    {
       "type": "input",
       "label": "客户名称",
       "prop": "custName",
       "search": true
    },    
    {
       "type": "select",
       "label": "客户类型",
       "prop": "custType",
       "search": true,
       dicData:[
          {label:'公海客户',value:1},
          {label:'试用客户',value:2},
          {label:'正式客户',value:3},
       ]
    },    
    {
       "type": "input",
       "label": "客户行业",
       "prop": "custIndustry",
       "search": true
    },    
    {
      "type": "cascader",
      "label": "所在城市",
      // "prop": "provinceCode",
      "prop": "codes",
      "search": false,
      dicData:province,
      // props: { 
      //    label: 'label',
      //    value: 'value'
      // },
      // cascaderItem: ['cityCode', 'districtCode'],
      // dicUrl: 'http://192.168.48.243:8010/admin/division/tree',
      // dicMethod: 'get',
      // dicQuery:{
      //    lazy: true,
      //    'parentId': '000000',
      // },
      // formatter:formatter,
    },    
   //  {
   //     "type": "input",
   //     "label": "客户详细地址",
   //     "prop": "address",
   //     "search": false,
   //  },    
    {
       "type": "input",
       "label": "客户来源",
       "prop": "custFrom",
       "search": false,
    },    
    {
      "type": "input",
      "label": "注册资金",
      "prop": "registAmount",
      "search": false,
   }, 
   {
      "type": "input",
      "label": "联系人",
      "prop": "contactName",
      "search": false
  }, 
   {
      "type": "input",
      "label": "联系电话",
      "prop": "contactTelephone",
      "search": false
   },      
    {
       "type": "input",
       "label": "邮箱",
       "prop": "email",
       "search": false,
    },  
    {
      "type": "input",
      "label": "备注",
      "prop": "remark",
      "search": false,
   },   
          
    {
       "type": "datetime",
       "label": "创建时间",
       "prop": "createTime",
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
       "search": false,
       editDisplay:false,
       addDisplay:false,
    },    
    {
       "type": "datetime",
       "label": "更新时间",
       "prop": "updateTime",
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
       "search": false,
       editDisplay:false,
       addDisplay:false,
    },      
   ]
}
export const abboption = {
   headerAlign: 'center',
   align: 'center',
   border: true,
   index: true,
   defaultExpandAll:true,
   tree:true,
   column: [
     {
       label: '事件',
       prop: 'event',
       align: 'left',
       width: 200
     },
     {
       label: 'ID',
       prop: 'id',
       dicData: [{
         label: '零',
         value: 0
       }, {
         label: '一',
         value: 1
       }, {
         label: '二',
         value: 2,
       }]
     },
     {
       label: '时间线',
       prop: 'timeLine',
       slot: true,
       type:'radio',
       width:300,
     },
     {
       label: '自定义图标',
       prop: 'icon',
       slot: true,
     },
     {
       label: '备注',
       prop: 'comment'
     }
   ],
 }